import NotAccessPage from '@/components/NotAccessPage';
import { useAccess } from '@umijs/max';
import React from 'react';
import TableQuality from '../components/TableQuality';
interface PageContainerQualityProps {}

const PageContainerQuality: React.FC<PageContainerQualityProps> = ({}) => {
  const access = useAccess();

  const container = () => {
    if (access.传播质效x页面 && access.传播质效x配置x管理员) {
      return <TableQuality />;
    }  else {
      return <NotAccessPage />;
    }
  };

  return container();
};

export default PageContainerQuality;
